.TH "C:/Users/Matt/Documents/School/Robotics/zebulon/v2/vision/ext/SIFT/imgfeatures.h" 3 "13 Oct 2009" "Version 2" "zebulon" \" -*- nroff -*-
.ad l
.nh
.SH NAME
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/vision/ext/SIFT/imgfeatures.h \- 
.SH SYNOPSIS
.br
.PP
\fC#include 'cxcore.h'\fP
.br

.SS "Classes"

.in +1c
.ti -1c
.RI "struct \fBfeature\fP"
.br
.in -1c
.SS "Defines"

.in +1c
.ti -1c
.RI "#define \fBFEATURE_OXFD_COLOR\fP   CV_RGB(255,255,0)"
.br
.ti -1c
.RI "#define \fBFEATURE_LOWE_COLOR\fP   CV_RGB(255,0,255)"
.br
.ti -1c
.RI "#define \fBFEATURE_MAX_D\fP   128"
.br
.in -1c
.SS "Enumerations"

.in +1c
.ti -1c
.RI "enum \fBfeature_type\fP { \fBFEATURE_OXFD\fP, \fBFEATURE_LOWE\fP }"
.br
.ti -1c
.RI "enum \fBfeature_match_type\fP { \fBFEATURE_FWD_MATCH\fP, \fBFEATURE_BCK_MATCH\fP, \fBFEATURE_MDL_MATCH\fP }"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fBimport_features\fP (char *filename, int type, struct \fBfeature\fP **feat)"
.br
.ti -1c
.RI "int \fBexport_features\fP (char *filename, struct \fBfeature\fP *feat, int n)"
.br
.ti -1c
.RI "void \fBdraw_features\fP (IplImage *img, struct \fBfeature\fP *feat, int n)"
.br
.ti -1c
.RI "double \fBdescr_dist_sq\fP (struct \fBfeature\fP *f1, struct \fBfeature\fP *f2)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Functions and structures for dealing with image features
.PP
Copyright (C) 2006 Rob Hess <hess@eecs.oregonstate.edu>
.PP
\fBVersion:\fP
.RS 4
1.1.1-20070913 
.RE
.PP

.SH "Define Documentation"
.PP 
.SS "#define FEATURE_MAX_D   128"max \fBfeature\fP descriptor length 
.SH "Enumeration Type Documentation"
.PP 
.SS "enum \fBfeature_match_type\fP"FEATURE_FWD_MATCH 
.br
 FEATURE_BCK_MATCH 
.br
 FEATURE_MDL_MATCH 
.SS "enum \fBfeature_type\fP"FEATURE_OXFD 
.br
 FEATURE_LOWE 
.SH "Function Documentation"
.PP 
.SS "double descr_dist_sq (struct \fBfeature\fP * f1, struct \fBfeature\fP * f2)"Calculates the squared Euclidian distance between two \fBfeature\fP descriptors.
.PP
\fBParameters:\fP
.RS 4
\fIf1\fP first \fBfeature\fP 
.br
\fIf2\fP second \fBfeature\fP
.RE
.PP
\fBReturns:\fP
.RS 4
Returns the squared Euclidian distance between the descriptors of \fIf1\fP and \fIf2\fP. 
.RE
.PP

.SS "void draw_features (IplImage * img, struct \fBfeature\fP * feat, int n)"Displays a set of features on an image
.PP
\fBParameters:\fP
.RS 4
\fIimg\fP image on which to display features 
.br
\fIfeat\fP array of Oxford-type features 
.br
\fIn\fP number of features 
.RE
.PP

.SS "int export_features (char * filename, struct \fBfeature\fP * feat, int n)"Exports a \fBfeature\fP set to a file formatted depending on the type of features, as specified in the \fBfeature\fP struct's type field.
.PP
\fBParameters:\fP
.RS 4
\fIfilename\fP name of file to which to export features 
.br
\fIfeat\fP \fBfeature\fP array 
.br
\fIn\fP number of features
.RE
.PP
\fBReturns:\fP
.RS 4
Returns 0 on success or 1 on error 
.RE
.PP

.SS "int import_features (char * filename, int type, struct \fBfeature\fP ** feat)"Reads image features from file. The file should be formatted as from the code provided by the Visual Geometry \fBGroup\fP at Oxford or from the code provided by David Lowe.
.PP
\fBParameters:\fP
.RS 4
\fIfilename\fP location of a file containing image features 
.br
\fItype\fP determines how features are input. If \fItype\fP is FEATURE_OXFD, the input file is treated as if it is from the code provided by the VGG at Oxford: http://www.robots.ox.ac.uk:5000/~vgg/research/affine/index.html 
.br

.br
 If \fItype\fP is FEATURE_LOWE, the input file is treated as if it is from David Lowe's SIFT code: http://www.cs.ubc.ca/~lowe/keypoints 
.br
\fIfeat\fP pointer to an array in which to store imported features
.RE
.PP
\fBReturns:\fP
.RS 4
Returns the number of features imported from filename or -1 on error 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for zebulon from the source code.
